const _Mongo = require('../../../Mongo')
const initUser = require('./init-user')
const initMenu = require('./init-menu')

const cmsMongo = new _Mongo('mongodb://192.168.1.2:27017', 'cms')

const run = async function(cmsMongo) {
	await initUser(cmsMongo, true)
	await initMenu(cmsMongo)
}

// module.exports = run

run(cmsMongo).then(r => {
	console.log('ok!!!')
})